home *** CD-ROM | disk | FTP | other *** search
- Message-ID: <31236966.1881@sisna.com>
- Date: Thu, 15 Feb 1996 09:12:06 -0800
- From: Matt Smolic <msmolic@sisna.com>
- Organization: Smolic Consulting
- X-Mailer: Mozilla 2.0b6b (Win16; I)
- MIME-Version: 1.0
- Newsgroups: comp.lang.c++
- Subject: Syntax clarification
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- NNTP-Posting-Host: dialup122.sisna.com
- Path: news.sisna.com!
-
- I am just making the switch from C to C++. Something I have come across
- and cannot find an answer to is the use of the "&" symbol. In C this
- means the address of, (e.g.) scanf("%d", &Avariable) would return the
- address of Avariable. In C++ I constantly see syntax such as, in
- declaring a class, Complex pow(const Complex & c, const Complex & power)
- What does the & symbol do here?
-
- Thanks in advance for the help.
-